#*******************************************************************************
# Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#     Eurotech - initial API and implementation
#
#*******************************************************************************
echo 'remove old symbolic link to console web application'
rm webapps/console.war
echo 'remove old symbolic link to api web application'
rm webapps/api.war
echo 'create symbolic link to console web application'
ln -s /kapua/org.eclipse.kapua.app.console/target/console-KAPUA_VERSION.war webapps/console.war
echo 'create symbolic link to api web application'
ln -s /kapua/org.eclipse.kapua.app.api/target/api.war webapps/api.war
